package com.groupbuying.store.service.impl;

import com.groupbuying.store.connector.SysconfigFeign;
import com.groupbuying.store.service.StoreMainInfoService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.groupbuying.store.dao.StoreOpexRuleRelDao;
import com.groupbuying.store.domain.StoreOpexRuleRelDO;
import com.groupbuying.store.service.StoreOpexRuleRelService;


@Service
public class StoreOpexRuleRelServiceImpl implements StoreOpexRuleRelService {
    private static Logger log = LoggerFactory.getLogger(StoreOpexRuleRelServiceImpl.class);

    @Autowired
    private StoreOpexRuleRelDao storeOpexRuleRelDao;

    @Autowired
    private StoreMainInfoService storeMainInfoService;

    @Autowired
    private SysconfigFeign sysconfigFeign;

    /**
     * Description 根据storeID获取门店运营规则 <br>
     *
     * @param storeID
     * @return opexRuleID
     * @author Ywxd <br>
     * @createDate 2019/4/18 17:11<br>
     **/
    @Override
    public String getOpexRuleByStoreID(String storeID) {
        return storeOpexRuleRelDao.getOpexRuleByStoreID(storeID);
    }

    @Override
    public StoreOpexRuleRelDO get(Integer relId) {
        return storeOpexRuleRelDao.get(relId);
    }

    @Override
    public List<StoreOpexRuleRelDO> list(Map<String, Object> map) {
        return storeOpexRuleRelDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return storeOpexRuleRelDao.count(map);
    }

    @Override
    public int save(StoreOpexRuleRelDO storeOpexRuleRel) {
        return storeOpexRuleRelDao.save(storeOpexRuleRel);
    }

    @Override
    public int update(StoreOpexRuleRelDO storeOpexRuleRel) {
        return storeOpexRuleRelDao.update(storeOpexRuleRel);
    }

    @Override
    public int remove(Integer relId) {
        return storeOpexRuleRelDao.remove(relId);
    }

    @Override
    public int batchRemove(Integer[] relIds) {
        return storeOpexRuleRelDao.batchRemove(relIds);
    }

}
